Set objFS = CreateObject("Scripting.FileSystemObject")
Set wshShell = CreateObject( "WScript.Shell" )
Set wshSystemEnv = wshShell.Environment( "SYSTEM" )
Set objArgs = WScript.Arguments
strFile1 = objArgs(0)
strFile2 = objArgs(1)
Set objFile1 = objFS.GetFile(strFile1)
Set objFile2 = objFS.GetFile(strFile2)
If objFile1.DateLastModified < objFile2.DateLastModified Then
    wshSystemEnv( "NEWER_FILE" ) = "ABC" 
    WScript.Echo "File1: "&strFile1&" is older than "&strFile2
Else
    wshSystemEnv( "NEWER_FILE" ) = "DEF" 
    WScript.Echo "File1: "&strFile1&" is newer than "&strFile2
End If

WScript.Echo "Newer File =" & wshSystemEnv( "NEWER_FILE" )